/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package mathma.core.real;

import java.math.BigInteger;

/**
 * @since 0.2.5
 * @author Ethan Levine
 */
public class Integer extends FiniteReal {

    public Integer(int v) {
        super(v);
    }

    public Integer(short v) {
        super(v);
    }

    public Integer(BigInteger v) {
        super(v);
    }

    public Integer(Real v) {
        super(v);
        if (!v.isInteger()) {
            throw new IllegalArgumentException(
                    "Non-integer Real passed to Integer constructor.");
        }
    }
}
